//
//  QISBaseNavigationController.m
//  Root
//
//  Created by conkey on 2019/1/9.
//  Copyright © 2019 Root. All rights reserved.
//

#import "QISBaseNavigationController.h"
#import "UINavigationController+BarBaseAppearce.h"

@interface QISBaseNavigationController ()

@end

@implementation QISBaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self configureNavigationBarBackImageWhite];
}

// override
- (UIStatusBarStyle)preferredStatusBarStyle {
    return UIStatusBarStyleDefault;
}

// override
- (BOOL)prefersStatusBarHidden {
    return NO;
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    if (self.viewControllers.count == 1) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    [super pushViewController:viewController animated:animated];
}

@end
